import request from '@/utils/request'

// 查询币种价格列表
export function listWCoinPrice(query) {
  return request({
    url: '/api/wCoinPrice/list',
    method: 'get',
    params: query
  })
}

// 查询币种价格详细
export function getWCoinPrice(id) {
  return request({
    url: '/api/wCoinPrice/' + id,
    method: 'get'
  })
}

// 新增币种价格
export function addWCoinPrice(data) {
  return request({
    url: '/api/wCoinPrice',
    method: 'post',
    data: data
  })
}

// 修改币种价格
export function updateWCoinPrice(data) {
  return request({
    url: '/api/wCoinPrice',
    method: 'put',
    data: data
  })
}

// 删除币种价格
export function delWCoinPrice(id) {
  return request({
    url: '/api/wCoinPrice/' + id,
    method: 'delete'
  })
}
